//
//  BarChartViewController.h
//  Stock
//
//  Created by sun black on 11-8-4.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CorePlot-CocoaTouch.h"
#import "StockChartDataService.h"

@interface BarChartViewController : UIViewController<ServiceDelegate,CPTPlotDataSource>{
    NSMutableArray *upDatas;
    NSMutableArray *downDatas;
    NSString *chartType;
    NSString *stockId;
    NSString *serviceType;
    StockChartDataService *service;
    CPTGraph *graph;
    NSMutableArray *xLableTitles;
    UIView *loadingView;
}
@property(nonatomic, retain) NSMutableArray *upDatas;
@property(nonatomic, retain) NSMutableArray *downDatas;
@property(nonatomic, retain) NSString *chartType;
@property(nonatomic, retain) NSString *stockId;
@property(nonatomic, retain) NSString *serviceType;
@property(nonatomic, retain) StockChartDataService *service;
@property(nonatomic, retain) CPTGraph *graph;
@property(nonatomic, retain) NSMutableArray *xLableTitles;
@property(nonatomic, retain) IBOutlet UIView *loadingView;

-(void)buildChartView;
-(void)loadChartData;
@end
